<?php 
 
namespace app\common\model;

use app\common\model\BaseModel;
use app\common\traits\ModelTrait;
use app\common\utils\JsonService;
/**
* This is the model class for table "{ptf_region}".
*
* @property int $id 表id 
* @property string $name 地区名称
* @property int $level 地区等级 分省市县区 
* @property int $parent_id 父id 
*/
class Region extends BaseModel{

    protected $pk = 'id';
    protected $name = 'region';

    use ModelTrait;
    protected $autoWriteTimestamp = true;
    //protected $dateFormat = 'Y-m-d';
    //protected $createTime = 'create_time';
    //protected $updateTime = 'update_time';

    /**
    * {@inheritdoc}
    */
    public function attributeLabels()
    {
        return [
            'id' => '表id',
            'name' => '地区名称',
            'level' => '地区等级 分省市县区',
            'parent_id' => '父id',
        ];
    }

}


?>